package com.scan.bus.service;

import com.scan.bus.bean.BaseEntity;
import com.scan.bus.bean.DeviceContentEntity;
import com.scan.bus.bean.EmptyEntity;
import com.scan.bus.bean.ScanMsgEntity;

import java.util.List;
import java.util.Map;

import okhttp3.MultipartBody;
import okhttp3.RequestBody;
import okhttp3.ResponseBody;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.Multipart;
import retrofit2.http.POST;
import retrofit2.http.Part;
import retrofit2.http.QueryMap;
import retrofit2.http.Streaming;
import retrofit2.http.Url;

/**
 * Created by zhang on 2017/4/13 16 : 06.
 * 网络请求接口
 */

public interface ApiService {
    int SC_OK = 200;
    int SC_PARTIAL_CONTENT = 206;

    /**
     * 下载文件
     */
//    @Streaming
//    @GET
//    Call<ResponseBody> download(@Url String url);

//    /**
//     * 微信绑定
//     * @return
//     */
//    @GET("member/userinfo/bindwx")
//    Call<BaseEntity<CommonEntity>> wechatBind(@QueryMap Map<String, Object> map);
//


    @POST("location/up")
    Call<BaseEntity<EmptyEntity>> locationUp(@Body RequestBody requestBody);

    @POST("Order/checkTicket")
    Call<BaseEntity<ScanMsgEntity>> checkTicket(@Body RequestBody body);

    @GET("shift/deviceInit")
    Call<BaseEntity<List<DeviceContentEntity>>> deviceInit(@QueryMap Map<String, Object> map);

    @POST("updown/checkTicket")
    Call<BaseEntity<EmptyEntity>> checkAllTicket(@Body RequestBody body);

    @POST("log/addRequestErrorLog")
    Call<BaseEntity<EmptyEntity>> addRequestErrorLog(@Body RequestBody body);
}
